﻿@model IEnumerable<ClevelandFreeClinic.Models.Announcement>

@{
    ViewBag.Title = "Announcements Management";
}
<style type="text/css">
    #AnnouncementsManagement {
        background-color: white;
        text-align: left;
        font-family: Arial;
        font-weight: 100;
        padding:40px;
        border: 2px solid gray;
    
    }
    table{
        margin-left: 0px;
        margin-top: 10px;
        padding: 5px;
    }
    table td{
        margin: 5px;
        padding: 5px;
    }
    th {
        text-align: left;
        font-weight: 600;
    }
</style>
<h2 style="color:#fff;">Announcements Management Screen</h2>
<div id="AnnouncementsManagement">
<div style="padding: 10px; border:1px solid gray; width:75px;}">
    @Html.ActionLink("Create New", "Create")
</div>
<table>
    <tr>
        <th style="">
            @Html.DisplayNameFor(model => model.AnnouncmentText)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Display)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.AnnouncmentText)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Display)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.AnnouncementId }) |
            @Html.ActionLink("Details", "Details", new { id=item.AnnouncementId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.AnnouncementId })
        </td>
    </tr>
}

</table>
</div>